{extend name="default/shops/base" /}
{block name="title"}店铺角色-卖家中心{__block__}{/block}
{block name="content"}
<div class="wst-shop-head"><span>店铺角色管理</span></div>
<div class='wst-shop-tbar'>
   角色名称：<input type='text' id="roleName" name='roleName' class="s-query" /> 
   <a class="s-btn" onclick="queryByPage(0)">查询</a>
   <a class="s-btn wst-list-add" href='{:url("home/shoproles/add")}'>添加</a>
</div>

<div class="wst-shop-content"> 
   <table class='wst-list'>
   <thead>
   <tr>
     <th width="40">序号</th>
     <th width="300">角色名称</th>
     <th>创建时间</th>
     <th>操作</th>
   </tr>
   </thead>
   <tbody id='loading' style='display:none'>
     <tr  class='empty-row'>
          <td colspan='4'><img src="__STYLE__/img/loading.gif">正在加载数据...</td>
     </tr>
   </tbody>
   <tbody id='list'></tbody>
   <tfoot>
     <tr><td colspan='4' style='padding-top:10px;text-align:center;'>
       <div id='pager'></div>
     </td></tr>
   </tfoot>
   
   <script id="tblist" type="text/html">
   {{# for(var i = 0; i < d.length; i++){ }}
   <tr>
      <td>{{i+1}}</td>
      <td>{{d[i]["roleName"]}}</td>
      <td>{{d[i]["createTime"]}}</td>
      <td>
        <a class="g-handle" href='javascript:toEdit({{d[i]["id"]}})'>[编辑]</a>
        <a class="g-handle" href='javascript:del({{d[i]["id"]}})'>[删除]</a>
      </td>
   </tr>
   {{# } }}
   </script>
  </table>
</div>
{/block}  
{block name="js"}
<script type='text/javascript' src='__STYLE__/shops/shoproles/shoproles.js?v={$v}'></script>
<script>
$(function(){queryByPage()})
</script>
{/block}